package cn.amarone.wineblog.common.appointment;

import cn.hutool.core.lang.func.Func0;

/**
 * 断言
 *
 * @author amarone
 * @create 2020-10-10 上午10:31
 */
public class Assert {

  /**
   * 如果为空，则抛出自定义业务异常
   *
   * @param obj
   */
  public static void isNullOrEmpy(Object obj) {
    if (obj == null) {
      throw new RuntimeException("Object is must be not null!");
    }
  }
}
